/*
 *
 *      Copyright (c) 2018-2025, st All rights reserved.
 *
 *  Redistribution and use in source and binary forms, with or without
 *  modification, are permitted provided that the following conditions are met:
 *
 * Redistributions of source code must retain the above copyright notice,
 *  this list of conditions and the following disclaimer.
 *  Redistributions in binary form must reproduce the above copyright
 *  notice, this list of conditions and the following disclaimer in the
 *  documentation and/or other materials provided with the distribution.
 *  Neither the name of the pig4cloud.com developer nor the names of its
 *  contributors may be used to endorse or promote products derived from
 *  this software without specific prior written permission.
 *  Author: st
 *
 */

package com.mkh.st.admin.api.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 用户表
 * </p>
 *
 * @author st
 * @since 2017-10-29
 */
@Data
@ApiModel(value = "用户")
@Accessors(chain = true)
public class SysUser implements Serializable {

	private static final long serialVersionUID = 1L;

	/**
	 * 用户id
	 */
	@TableId
	@ApiModelProperty(value="用户id")
	private Long userId;
	/**
	 * 用户账号
	 */
	@ApiModelProperty(value="用户账号")
	private String userAccount;
	/**
	 * 用户姓名
	 */
	@ApiModelProperty(value="用户姓名")
	private String username;
	/**
	 * 手机号码
	 */
	@ApiModelProperty(value="手机号码")
	private String phone;
	/**
	 * 密码
	 */
	@ApiModelProperty(value="密码")
	private String password;
	/**
	 * 加密盐值
	 */
	@ApiModelProperty(value="加密盐值")
	private String salt;
	/**
	 * 性别(0-默认未知,1-男,2-女)
	 */
	@ApiModelProperty(value="性别(0-默认未知,1-男,2-女)")
	private Integer sex;
	/**
	 * 用户类型【00:平台用户 10:租户用户（11:供应商用户 12:客户）:】
	 */
	@ApiModelProperty(value="用户类型【10:平台用户 11:租户用户（12:供应商用户 13:客户）:】")
	private Integer userType;

	@ApiModelProperty(value="业务类型1：采购员,2：销售员,3：财务人员,4：其它")
	private Integer userBusinessType;
	/**
	 * 有效期开始时间
	 */
	@ApiModelProperty(value="有效期开始时间")
	private LocalDateTime beginTime;
	/**
	 * 有效期结束时间
	 */
	@ApiModelProperty(value="有效期结束时间")
	private LocalDateTime endTime;
	/**
	 * 冻结标记:0未冻结1已冻结
	 */
	@ApiModelProperty(value="状态标记：1正常,2锁定,3冻结")
	private Integer normalFlag;

	/**
	 *
	 */
	@ApiModelProperty(value="")
	private LocalDateTime createTime;
	/**
	 *
	 */
	@ApiModelProperty(value="")
	private String createBy;
	/**
	 * 租户id
	 */
	@ApiModelProperty(value="租户id",hidden=true)
	private Long tenantId;
	/**
	 *
	 */
	@ApiModelProperty(value="")
	private LocalDateTime updateTime;
	/**
	 *
	 */
	@ApiModelProperty(value="")
	private String updateBy;
	/**
	 * 删除标记：0未删除1已删除
	 */
	@ApiModelProperty(value="删除标记：0未删除1已删除")
	private Integer delFlag;
	/**
	 * 邮箱
	 */
	@ApiModelProperty(value="邮箱")
	private String email;
	/**
	 * 昵称
	 */
	@ApiModelProperty(value="昵称")
	private String nickName;
	/**
	 * 头像地址
	 */
	@ApiModelProperty(value="头像地址")
	private String avatar;
	/**
	 * 出生日期
	 */
	@ApiModelProperty(value="出生日期")
	private LocalDateTime birthday;
	/**
	 * 身份号码
	 */
	@ApiModelProperty(value="身份号码")
	private String idCard;

	@ApiModelProperty(value="创建人id")
	private Long createId;

	@ApiModelProperty(value="修改人id")
	private Long updateId;

	@ApiModelProperty(value="备注信息")
	private String remark;

	/**
	 * 微信openid
	 */
	@ApiModelProperty(value = "微信openid")
	private String wxOpenid;

	/**
	 * 微信小程序openId
	 */
	@ApiModelProperty(value = "微信小程序openid")
	private String miniOpenid;

	/**
	 * QQ openid
	 */
	@ApiModelProperty(value = "QQ openid")
	private String qqOpenid;

	/**
	 * 码云唯一标识
	 */
	@ApiModelProperty(value = "码云唯一标识")
	private String giteeLogin;

	/**
	 * 开源中国唯一标识
	 */
	@ApiModelProperty(value = "开源中国唯一标识")
	private String oscId;

	@ApiModelProperty(value="不显示标记，0显示1不显示")
	private Integer notShow;

}
